/*
 * @Description:
 * @Version: V1.0.0
 * @Author: 周艳凯 484894717@qq.com
 * @Date: 2024-09-26 22:23:27
 * @LastEditors: 周艳凯 484894717@qq.com
 * @LastEditTime: 2024-10-09 10:59:03
 * @FilePath: vite.config.ts
 * Copyright 2024 Marvin, All Rights Reserved.
 * 2024-09-26 22:23:27
 */
import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import eslint from "vite-plugin-eslint";
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
    eslint({
      cache: false,
      exclude: ["node_modules"],
    }),
  ],
  resolve: {
    alias: [
      {
        find: "@",
        replacement: resolve(__dirname, "../src"),
      },
      {
        find: "assets",
        replacement: resolve(__dirname, "../src/assets"),
      },
    ],
  },
});
